import request from '@/utils/request'

// 查询圈子选手列表
export function listCircleSportsman(query) {
  return request({
    url: '/system/circleSportsman/list',
    method: 'get',
    params: query
  })
}

// 查询圈子选手详细
export function getCircleSportsman(id) {
  return request({
    url: '/system/circleSportsman/' + id,
    method: 'get'
  })
}

// 新增圈子选手
export function addCircleSportsman(data) {
  return request({
    url: '/system/circleSportsman',
    method: 'post',
    data: data
  })
}

// 修改圈子选手
export function updateCircleSportsman(data) {
  return request({
    url: '/system/circleSportsman',
    method: 'put',
    data: data
  })
}

// 删除圈子选手
export function delCircleSportsman(id) {
  return request({
    url: '/system/circleSportsman/' + id,
    method: 'delete'
  })
}

// 导出圈子选手
export function exportCircleSportsman(query) {
  return request({
    url: '/system/circleSportsman/export',
    method: 'get',
    params: query
  })
}